package demo.msa.retrofit.hello.client;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface HelloService {

    @GET("/say1")
    Call<String> say1(@Query("name") String name);

    @GET("/say2/{name}")
    Call<String> say2(@Path("name") String name);

    @GET("/say3")
    Call<String> say3(@Header("name") String name);

    @GET("/say4")
    Call<String> say4();

    @GET("/say5")
    Call<String> say5(@Query("name") String... name);

    @GET("/say6")
    Call<String> say6(@Query("name") String name, @Query("age") int age);

    @GET("/say7")
    Call<String> say7(@Query("name") String name, @Query("age") Integer age);
}
